﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///PublicWeb 的摘要说明
/// </summary>
public static class PublicWeb
{

    /// <summary>
    /// 判断是否是添加事件
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    public static bool IsSubAdd(HttpRequest request)
    {
        return PublicFunction.GetRequstQueryString(request, "act").Equals("add");
    }
    /// <summary>
    /// 判断是否是修改事件
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    public static bool IsSubEdit(HttpRequest request)
    {
        return PublicFunction.GetRequstQueryString(request, "act").Equals("edit");
    }
    /// <summary>
    /// 判断是否是删除事件
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    public static bool IsSubDelete(HttpRequest request)
    {
        return PublicFunction.GetRequstQueryString(request, "act").Equals("delete");
    }
}
